import actionTypes from './constant';

export const getUserAction = (personName: string) => {
  return {
    type: actionTypes.GET_USER,
    payload: personName,
  } as const;
};


export const addUserAction = (personName: string) => {
  return {
    type: actionTypes.ADD_USER,
    payload: personName,
  } as const;
};

export const removeUserAction = (id: string) => {
  return {
    type: actionTypes.REMOVE_USER,
    payload: id,
  } as const;
};
